package demo1;

import org.springframework.stereotype.Component;
/*
    @Component注解，Spring容器提供的注解，只有被该注解标注的类才会被容器管理
 */
@Component
public class Person {
    public void sayHello(){
        System.out.println("Person:hello");
    }
}
